/**
 * Copyright (C) 2015-2018 IQIYI
 * All rights reserved.
 *
 * Author     : 王海斌
 * E-mail     : wanghaibin@qiyi.com
 * Version    :
 * Date       : Mon 17 Dec 2018 11:37:06 AM CST
 * Destription:
 *
 */

#include <acl-lib/acl/lib_acl.h>
#include <acl-lib/acl_cpp/lib_acl.hpp>
#include <acl-lib/fiber/lib_fiber.h>
#include <acl-lib/fiber/lib_fiber.hpp>
#include <acl-lib/acl_cpp/stdlib/json.hpp>

#include <iostream>
#include <vector>
#include "testa.h"

using namespace std;

int main(int , char *[])
{
    cout << __cplusplus << endl;
    return 0;
    int mm = 300;
    TestA aa(&mm);

    cout << "value=" << aa.GetValue() << endl;
    acl::string strTmp;
    strTmp.set_bin(true);
    const char * data="123;456;789;1234567;";
    strTmp.append(data, strlen(data));
    std::vector<acl::string> & vec = strTmp.split2(";");
    for(size_t i=0; i<vec.size(); ++i) {
        long long val= atoll(vec[i].c_str());
        cout << strTmp.get_bin() << " " << vec[i].get_bin() << "vec[" <<i<< "]=" << val<< endl;
    }

    std::map<int, std::string> mpTest;
    mpTest[1] = "aaaa";
    std::map<int, std::string>::iterator it = mpTest.find(1);
    std::string & tmpVal = it->second;
    cout << "val=" << tmpVal.c_str() << endl;
    tmpVal = "xxxx";
    cout << "val=" << tmpVal.c_str() << " it->second=" << it->second.c_str() << endl;;
    cout << "second len=" << sizeof(it->second) << endl;

    const char * aaa="1234567";
    const char * bbb = aaa;
    aaa++;
    cout << "bbb=" << bbb << "  aaa=" << aaa <<endl;
    return 0;
}
